package edu.sctu.zhuyingzhi.month201505.day20150520.threadTest;

/**
 * Created by user13 on 2015/5/20.
 */
public class Wait extends Thread{

    synchronized void waitV(){
        System.out.println("XXXXX");
        try {
            wait(1000);
        } catch (InterruptedException e) {
            System.out.println("error");
        }


    }
    synchronized void waitM(){
        System.out.println("zzzzz");
        notify();

    }
}
